﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ODataPQ
{
    /// <summary>
    /// 定义一个分页数据返回对象
    /// -------------------------------
    /// Add by stupidboy 2015-5-13 11:21:49
    /// </summary>
    internal class ODPageResult
    {
        internal ODPageResult(object data, int total)
        {
            this._data = data;
            this._total = total;
        }

        private object _data;
        /// <summary>
        /// Get the Data Object
        /// </summary>
        public object Data
        {
            get { return this._data; }
            private set { this._data = value; }
        }

        private int _total;
        /// <summary>
        /// Get the total count
        /// </summary>
        public int Total
        {
            get { return this._total; }
            private set { this._total = value; }
        }
    }
}